package xin.nick.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Getter;
import lombok.Setter;
import xin.nick.common.mbp.entity.BaseEntity;

/**
 * <p>
 * 系统-用户
 * </p>
 *
 * @author Nick
 * @since 2023-09-21
 */
@Getter
@Setter
@TableName("system_user")
public class SystemUser extends BaseEntity {

    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("nickname")
    private String nickname;

    @TableField("tel_number")
    private String telNumber;

    @TableField("remark")
    private String remark;

    @TableField("version")
    @Version
    private Long version;

    @TableField("disabled")
    private Boolean disabled;

    @TableField("deleted")
    @TableLogic
    private Boolean deleted;


}
